import request from '@/utils/request'

// 查询余额变动记录列表
export function listMoneyRecord(query) {
  return request({
    url: '/project/moneyRecord/list',
    method: 'get',
    params: query
  })
}

// 查询余额变动记录详细
export function getMoneyRecord(id) {
  return request({
    url: '/project/moneyRecord/' + id,
    method: 'get'
  })
}

// 新增余额变动记录
export function addMoneyRecord(data) {
  return request({
    url: '/project/moneyRecord',
    method: 'post',
    data: data
  })
}

// 修改余额变动记录
export function updateMoneyRecord(data) {
  return request({
    url: '/project/moneyRecord',
    method: 'put',
    data: data
  })
}

// 删除余额变动记录
export function delMoneyRecord(id) {
  return request({
    url: '/project/moneyRecord/' + id,
    method: 'delete'
  })
}
